<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xmlns:th="http://www.thymeleaf.org">
 
<head> 
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
	<title>选择用户</title> 
	
	<link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/text.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/form.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/buttons.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/grid.css" type="text/css" media="screen" title="no title" />	
	<link rel="stylesheet" href="../css/layout.css" type="text/css" media="screen" title="no title" />	
	
	<link rel="stylesheet" href="../css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/plugin/facebox.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/plugin/uniform.default.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/plugin/dataTables.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../css/custom.css" type="text/css" media="screen" title="no title">
	<script type="text/javascript">
	function ok(no){
        window.parent.location="pay_window.html?UserNo="+no;
		window.parent.swal.close();

	}
	</script>
</head> 
 
<body> 

<div style="width:90%; margin:0 auto;">
	<br/>
	<h2>选择用户</h2>


	<table class="data display">
		<thead>
			<tr>
				<th>用户编码</th>
				<th>用户姓名</th>
				<th>简码</th>
				<th>电话</th>
				<th>地址</th>
			</tr>
		</thead>
		<tbody>
			<tr class="odd" th:each="e:${users}">
				<td><a th:href="|javascript:ok(${e.UserNo})|" >[[${e.UserNo}]]</a></td>
				<td><a th:href="|javascript:ok(${e.UserNo})|" >[[${e.UserName}]]</a></td>
				<td>[[${e.ABC}]]</td>
				<td>[[${e.Phone}]]</td>
				<td>[[${e.Address}]]</td>
			</tr>
			</tbody>
		</table>

	<form action="" method="post" name="f1" id="f1">
		<div class="page">
			<a href="javascript:f1.startPage.value=1;f1.submit()">首页</a>
			<a th:if="${pageInfo.hasPreviousPage}" href="javascript:f1.startPage.value=f1.startPage.value-1;f1.submit()" aria-label="Previous">上一页</a>
			<input class="pageIndex" name="startPage" id="startPage" th:value="${startPage}"  th:onkeydown="test()"/> / <input class="pageCount" readonly="readonly" name="pages" id="pages" th:value="${pageInfo.pages}"/>
			<a th:if="${pageInfo.hasNextPage}" href="javascript:f1.startPage.value=f1.startPage.value-0+1;f1.submit()"
			   aria-label="Next">下一页</a>
			<a th:href="|javascript:f1.startPage.value=${pageInfo.pages};f1.submit()|">第未页</a>
			<script>
                function test(frm,event) {
                    var event=window.event?window.event:event;
                    if(event.keyCode==13){
                        if (f1.startPage.value<=0){
                            f1.startPage.value=1;
                            f1.submit();
                        }else if (f1.startPage.value>f1.pages.value){
                            f1.startPage.value=f1.pages.value;
                            f1.submit();
                        }
                        f1.submit();
                    }
                }
			</script>

		</div>
	</form>
</div>

<script src="../js/jquery/jquery-1.5.2.min.js"></script>
<script src="../js/jquery/jquery-ui-1.8.12.custom.min.js"></script>
<script src="../js/misc/excanvas.min.js"></script>
<script src="../js/jquery/facebox.js"></script>
<script src="../js/jquery/jquery.visualize.js"></script>
<script src="../js/jquery/jquery.dataTables.min.js"></script>
<script src="../js/jquery/jquery.tablesorter.min.js"></script>
<script src="../js/jquery/jquery.uniform.min.js"></script>
<script src="../js/jquery/jquery.placeholder.min.js"></script>

<script src="../js/widgets.js"></script>
<script src="../js/dashboard.js"></script>

<script type="text/javascript">
	
$(document).ready ( function () 
{
	Dashboard.init ();
});

</script>

</body> 
 
</html>